import request from "@/services/request.ts";

export const getOrganizationList = async (user_id:string)=>{
    return request.get('/organization',{user_id})
}

export const createOrganization = async (data:object)=>{
    return request.post('/organization',data)
}

export const updateOrganization = async (id:string,data:object)=>{
    return request.put(`/organization/${id}`,data)
}

export const deleteOrganization = async (id:string)=>{
    return request.del(`/organization/${id}`)
}

export const getOrgGradeCapacity = async (id:string)=> {
    return request.get('/organization/grade_capacity',{id})
}